package org.redmagic.location.file;

import java.util.Properties;

import org.redmagic.api.Location;
import org.redmagic.utils.PropertiesLoader;

public class FileLocation implements Location {

    private final Properties properties;
    
    public FileLocation(String uri) {
        this.properties = PropertiesLoader.load(uri);
    }
    
    public String resolve(String placeholder) {
        return this.properties.getProperty(placeholder);
    }

}